package cz.muni.fi.pa165.sme.web.panels;

import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;

/**
 * @author jirankova
 */
public abstract class DeletePanel extends Panel {
	public DeletePanel(String id, IModel<?> model) {
		super(id, model);
		add(new Link<Void>("removeLink") {
			@Override
			public void onClick() {
				onDelete();
			}
		});
	}

	public abstract void onDelete();
}
